﻿<!doctype html>
<html class="noDragging" lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
        <meta name="renderer" content="webkit" />
	    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no,width=device-width,height=device-height">
        <title>理镁</title>
        
    </head>
    <body style="margin: 0px; padding:0px;">
        <span id="wx" style="display:none">xyz2018</span>
        <img id="img" src="wx.JPG" style="display: block;width:100%;height:auto;">
        <p style="text-align:center;">点击图片自动复制微信号并跳转至微信</p>
        <script src="./jquery.js"></script>
        <script>
        $(document).ready(function(){
            // var clipboard = new ClipboardJS('#wx');  
            // clipboard.on('success', function(e) {    
            //     alert("微信号 : 15202070000 复制成功",1500); 
            //     e.clearSelection();    
            //     console.log(e.clearSelection);    
            // });    
                    //复制文本
        function copyText() {
            var textareaEle = document.createElement("textarea");
            textareaEle.value = 'Zcong0127';
            document.body.appendChild(textareaEle);
            textareaEle.select();
            document.execCommand('copy')
            document.body.removeChild(textareaEle);
        }
 
        
            $('#img').click(function(){
                copyText();
                window.location.href = "weixin://";
                                        
            })
        })
            
        </script>
    </body>
</html>